package publics;

import org.openqa.selenium.WebDriver;

import Pages.RegistPage;

public class RegisterAction {
	public static void Action_register(WebDriver driver, String telephone, String password, String confirmpassword,
			String verificationcode, String SMSverificationcode) {
		RegistPage.Page_telephone(driver).clear();
		RegistPage.Page_telephone(driver).sendKeys(telephone);
		RegistPage.Page_password(driver).clear();
		RegistPage.Page_password(driver).sendKeys(password);
		RegistPage.Page_confirmpassword(driver).clear();
		RegistPage.Page_confirmpassword(driver).sendKeys(confirmpassword);
		RegistPage.Page_verificationcode(driver).clear();
		RegistPage.Page_verificationcode(driver).sendKeys(verificationcode);
		RegistPage.Page_sendcode(driver).click();
		RegistPage.Page_verificationcode(driver).clear();
		RegistPage.Page_verificationcode(driver).sendKeys(verificationcode);
		RegistPage.Page_SMSverificationcode(driver).clear();
		RegistPage.Page_SMSverificationcode(driver).sendKeys(SMSverificationcode);
		RegistPage.Page_register(driver).click();
	}
}
